<template>
    <div class="nav-content">
        <router-link to="/wallet" class="nav-router">
            <i class="iconfont icon-qianbao"></i>
            <span class="nav-list">我的钱包</span>
        </router-link>
        <router-link to="/find" class="nav-router">
            <i class="iconfont icon-faxian"></i>
            <span class="nav-list">发现</span>
        </router-link>
        <router-link to="/my" class="nav-router">
            <i class="iconfont icon-xiazai"></i>
            <span class="nav-list">个人中心</span>
        </router-link>
    </div>
</template>

<script>
    export default {
        name: 'nav'
    }
</script>

<style lang="scss">
    .nav-content {
        width: 100%;
        height: 1rem;
        background-color: #fff;
        display: flex;
        position: fixed;
        bottom: 0;
    }
    .iconfont{
        font-size: 0.5rem;
        line-height: 0.4rem;
        vertical-align: top;
    }
    .iconfont:before{
        vertical-align: top;
    }
    .nav-list{
        width: 100%;
        height: 0.5rem;
        line-height: 0.5rem;
        font-size: 0.24rem;
        display: block;
        position: absolute;
        bottom: 0;
    }
    .nav-router{
        width: calc(100% / 3);
        text-decoration: none;
        color: #999999;
        text-align: center;
        padding-top: 0.08rem;
        position: relative;
    }
    a:active{
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    }
    .router-link-exact-active{
        color: #DF001C;
    }
</style>
